#ifndef NEWPLOTSETDIALOG_H
#define NEWPLOTSETDIALOG_H

#include <QComboBox>
#include <QLineEdit>
#include <QPushButton>
#include <QFormLayout>
#include <QHBoxLayout>
#include <QMessageBox>
#include <QDialog>
#include <QSpinBox>
#include <QLabel>

#include "gsplot.h"

class NewPlotSetDialog : public QDialog
{
    Q_OBJECT
public:
    NewPlotSetDialog(QList<GSData*>* dataSet, QWidget *parent = 0);

    QString getPlotName();
    GSPlot::PlotType getPlotType();
    int getXId();
    int getYId();
    int getZId();
    int getWidth();
    int getHeight();
    int getResolution();

public slots:
    void plotTypeChange(int type);
    void okButtonClicked();

private:
    QFormLayout formLayout;
    QLineEdit nameLineEdit;
    QComboBox variableXCombox, variableYCombox, variableZCombox;
    QComboBox typeCombox;
    QPushButton okButton;
    QPushButton cancelButton;
    QHBoxLayout hlayout;
    QHBoxLayout hlayoutWidth;
    QHBoxLayout hlayoutHeight;
    QHBoxLayout hlayoutResolution;
    QSpinBox widthSpin;
    QSpinBox heightSpin;
    QSpinBox resolutionSpin;
    QLabel labelWidth;
    QLabel labelHeight;
    QLabel labelResolution;
};

#endif // NEWPLOTSETDIALOG_H
